package 第四章控制语句;

public class SwitchTest02 {
    public static void main(String[] args) {
        java.util.Scanner s = new java.util.Scanner(System.in);
        System.out.print("请输入星期几：");
        String week = s.next();
        switch (week) {
            case "星期一":
                System.out.println("1");
                break;
            case "星期二":
                System.out.println("2");
                break;
            default:
                System.out.println("error!!!!");
        }
    }
}
